package com.me.jingdongshop.ui.holder;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.me.common.ui.BaseAdapterLV;
import com.me.common.ui.BaseHolderLV;
import com.me.jingdongshop.R;
import com.me.jingdongshop.model.bean.Help;

/**
 * Created by Administrator on 2017/5/9.
 */

public class MyHelpHolder extends BaseHolderLV<Help.HelpListBean> {
    private TextView mItemName;

    public MyHelpHolder(Context context, ViewGroup parent, BaseAdapterLV<Help.HelpListBean> adapter, int position, Help.HelpListBean bean) {
        super(context, parent, adapter, position, bean);
    }

    @Override
    public View onCreateView(Context context, ViewGroup parent) {
        View inflate = View.inflate(context,R.layout.my_help_item,null);
        mItemName = (TextView) inflate.findViewById(R.id.tv_name);

        return inflate;
    }

    @Override
    protected void onRefreshView(Help.HelpListBean bean, int position) {

        mItemName.setText(bean.getTitle());

    }
}
